package com.ruoyi.project.km.projectManager.mapper;

import com.ruoyi.project.km.projectManager.domain.KmPro;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProManagerMapper {
    //根据条件查询项目信息
    List<KmPro> selectKmProMapper(KmPro kmPro);

    //查询所有项目信息
    List<KmPro> selectKmProAll(KmPro kmPro);

    //根据项目名称查询项目信息
    KmPro checkKmProNameUniqueMapper(@Param("proName") String proName);

    //新增项目信息
    int insertKmProMapper(KmPro kmPro);

    //根据项目编号获取项目信息
    KmPro selectKmProByIdMapper(@Param("proId") Integer proId);

    //修改项目信息
    int updateKmProMapper(KmPro kmPro);

    //根据项目编号删除指定项目信息(支持多选删除)
    int deleteKmProByIds(Integer[] proIds);

  /*  //查询标杆项目的数量
    int selectKmProMapper_COUNT(@Param("kmPro") KmPro kmPro);*/

    int selectPostById(@Param("prettyPro") Integer prettyPro);

    //根据项目编号修改项目排序
    int updatePrettyByIdMapper(KmPro kmPro);
}
